<load target="js/widget.js" usecdn="true" />
<load target="css/widget.css" usecdn="true" />

<div class="x" style="padding: 0 10px;">

	<h2 class="h2">{$lang->cmd_content_insert}</h2>

	<form action="./" method="get" onsubmit="return addContentWidget(this); return false;" id="content_fo">
		<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
		<input type="hidden" name="mid" value="{$module_info->mid}" />
		<input type="hidden" name="module_srl" value="{$module_srl}" />
		<input type="hidden" name="document_srl" value="{$document_srl}" />
		<input type="hidden" name="style" value="float:left;padding:none;margin:none;width:100%;" />
		<input type="hidden" name="widget_padding_left" value="" />
		<input type="hidden" name="widget_padding_right" value="" />
		<input type="hidden" name="widget_padding_top" value="" />
		<input type="hidden" name="widget_padding_bottom" value="" />

		<div class="pageAddContent"></div>

		<div class="editor">
			{$editor}
		</div>

		<script type="text/javascript">
			xAddEventListener(window, 'load', doSyncPageContent);
		</script>

		<div class="btnArea">
			<span class="btn small"><input type="submit" value="{$lang->cmd_save}" class="editor_button" /></span>
		</div>
	</form>
</div>